package com.ymt.bpm.model;

import java.util.Date;

public class PTaskTodo {

    public static final int PURPOSE_NONE=0;   // 任务用途0 默认 无
    public static final int PURPOSE_TEMPLATE=1;   // 任务用途1 模板
    public static final int PURPOSE_DRAFT=2;   // 任务用途2 起草
    public static final int PURPOSE_START=3;   // 任务用途3 发起

    public static final int PRIORITY_NORMAL=10;
    public static final int PRIORITY_URGENT=20;
    public static final int PRIORITY_IMPORTANT=30;
    public static final int PRIORITY_DEFERED=1;

    public static final String STATUS_NEW="00";
    public static final String STATUS_READ="01";
    public static final String STATUS_CLAIMED="02";    //认领
    public static final String STATUS_HIDE="03";    //为前后加签或抢办隐藏的任务

    public static final String TYPE_NORMAL="0";   //0正常任务
    public static final String TYPE_COMPETE="1";   // 1抢办任务
    public static final String TYPE_CONSIGN="2";   // 2会签任务
    //public static final String TYPE_REASSIGNED="3";   // 3转发任务
    public static final String TYPE_INVOLVED_BEFORE="4";   // 4前加签任务
    public static final String TYPE_INVOLVED_AFTER="5";   // 5后加签任务
    public static final String TYPE_INVOLVED_SYNC="6";   // 6并加签任务
    //public static final String TYPE_RETURNED="7";   // 7被驳回任务
    public static final String TYPE_SKIPPED_NOASSIGNEE="11";   // 11无处理人自动跳过任务
    public static final String TYPE_SKIPPED_SAMEASSIGNEE="12";   // 12相同处理人自动跳过任务

    private String tiId;

    private Integer tenantId;

    private String tiEId;

    private String piId;

    private String piEid;

    private String tType;

    private Integer priority;

    private String activityId;

    private String activityName;

    private String userId;

    private String userName;

    private String dUserId;

    private String dUserName;

    private String status;

    private Date createTime;

    private Date receiveTime;

    private Date dueTime;

    private String summary;

    private int purpose;

    private String prevTiid;

    public String getTiId() {
        return tiId;
    }

    public void setTiId(String tiId) {
        this.tiId = tiId;
    }

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }

    public String getTiEId() {
        return tiEId;
    }

    public void setTiEId(String tiEId) {
        this.tiEId = tiEId;
    }

    public String getPiId() {
        return piId;
    }

    public void setPiId(String piId) {
        this.piId = piId;
    }

    public String getPiEid() {
        return piEid;
    }

    public void setPiEid(String piEid) {
        this.piEid = piEid;
    }

    public String gettType() {
        return tType;
    }

    public void settType(String tType) {
        this.tType = tType;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getdUserId() {
        return dUserId;
    }

    public void setdUserId(String dUserId) {
        this.dUserId = dUserId;
    }

    public String getdUserName() {
        return dUserName;
    }

    public void setdUserName(String dUserName) {
        this.dUserName = dUserName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Date getDueTime() {
        return dueTime;
    }

    public void setDueTime(Date dueTime) {
        this.dueTime = dueTime;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public int getPurpose() {
        return purpose;
    }

    public void setPurpose(int purpose) {
        this.purpose = purpose;
    }

    public String getPrevTiid() {
        return prevTiid;
    }

    public void setPrevTiid(String prevTiid) {
        this.prevTiid = prevTiid;
    }
}